package com.tqz.controller;

import com.tqz.remotecall.ProductRemoteCall;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *
 * @author tianqingzhao
 * @since 2021/7/8 13:51
 */
@RestController
public class TestController {

    @Autowired
    private ProductRemoteCall productRemoteCall;

    @GetMapping("test")
    public String test(@RequestParam(defaultValue = "2") Integer index) {
        String test = productRemoteCall.test(index);
        return test;
    }
}
